#ifndef COLLECTIONGRABWINDOW_H
#define COLLECTIONGRABWINDOW_H

#include "singleton.h"
#include <QPixmap>
#include <QByteArray>
#include <QString>

class collectionGrabWindow : public Singleton<collectionGrabWindow>
{
public:    
    bool  outBMP(QString filename);
    bool outPNG(QString filename);
    bool outJPG(QString filename);
    bool toByte(QByteArray &byteArray);
    bool toMinByte07(QByteArray &byteArray);
    void setCollection(bool b);
    bool isCollection();
private:
    QPixmap  m_Pixmap;
    bool m_bCollection;//是否采集，用于外部控制，内部无作用
protected:
    friend class Singleton<collectionGrabWindow>;
    collectionGrabWindow();
    bool collection();//采集
};
#define MY_COLLECTION_GRABWINDOW collectionGrabWindow::getInstance()
#endif // COLLECTIONGRABWINDOW_H
